import { TypeLineOperateType, TypePaintBrushLineDash } from "./type";

export type imageListType = {
    image: HTMLImageElement;
    width: number;
    height: number;
    x: number;
    y: number;
    z: number;
    active: boolean
}

export type lineStyleType = {
    strokeStyle?: string; // 画笔的颜色
    lineWidth?: number; // 画笔的粗细
    lineDash?: TypePaintBrushLineDash; // 画笔的类型 solid实线，虚线
}

interface InterLineOperateOption extends lineStyleType {
    bgColor?: string;
    bgImage?: string;
    image?: imageListType;
}

export interface InterLineOperate {
    type: TypeLineOperateType;
    options: InterLineOperateOption;
    value: [number, number][];
}